﻿using AccessControl.Common;
using AccessControl.DataAcess;


namespace AccessControl.Business
{
	public class DeviceBusiness
	{
        readonly static DeviceAccess _deviceAccess = new DeviceAccess();

        public static AccessControlDS.tblDeviceDataTable SelectAll(){
            var tbl = new AccessControlDS.tblDeviceDataTable();
            return _deviceAccess.SelectAll(tbl);
		}

        public static AccessControlDS.tblDeviceDataTable SelectAll( AccessControlDS.tblDeviceDataTable tbl)
        {
            return _deviceAccess.SelectAll(tbl);
        }

             public static AccessControlDS.tblDeviceDataTable SelectAllEnabled( AccessControlDS.tblDeviceDataTable tbl)
        {
            return _deviceAccess.SelectAllEnabled(tbl);
        }


        
        public static AccessControlDS.tblDeviceDataTable SelectByFilter(string filter)
		{
			return _deviceAccess.SelectByFilter(filter);
		}

        public static void Insert(AccessControlDS.tblDeviceRow row)
		{
			_deviceAccess.Insert(row);
		}

        public static void Update(AccessControlDS.tblDeviceRow row)
		{
			_deviceAccess.Update(row);
		}

        public static void Delete(AccessControlDS.tblDeviceRow row)
		{
			_deviceAccess.Delete(row);
		}
	}
}
